package com.sservice.model.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/***
 * 销售佣金
 */
public class SaleCommission implements Serializable {
    private static final long serialVersionUID = 1044143881987041856L;
    /**
     * 佣金ID
     */
    private Integer id;
    /**
     * 佣金业务代码
     */
    private String no;
    /**
     * 销售ID
     */
    private String saleId;
    /**
     * 销售昵称
     */
    private String saleName;
    /**
     * 提成比例
     */
    private BigDecimal percent;
    /**
     * 提成佣金
     */
    private BigDecimal commission;
    /**
     * 订单总额
     */
    private BigDecimal total;
    /**
     * 订单编号
     */
    private String orderId;
    /**
     * 销售员ID
     */
    private String saler;
    /**
     * 佣金状态:0发放中，1入账，2退款
     */
    private String status;
    private Timestamp createAt;

    public String getSaler() {
        return saler;
    }

    public void setSaler(String saler) {
        this.saler = saler;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId == null ? null : saleId.trim();
    }

    public String getSaleName() {
        return saleName;
    }

    public void setSaleName(String saleName) {
        this.saleName = saleName == null ? null : saleName.trim();
    }

    public BigDecimal getPercent() {
        return percent;
    }

    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Timestamp getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Timestamp createAt) {
        this.createAt = createAt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}